# frozen_string_literal: true
# == Schema Information
#
# Table name: guests
#
#  id          :integer          not null, primary key
#  village_id  :integer
#  building_id :integer
#  idcard_id   :integer
#  name        :string
#  telephone   :string
#  created_at  :datetime         not null
#  updated_at  :datetime         not null
#
# Indexes
#
#  index_guests_on_building_id  (building_id)
#  index_guests_on_idcard_id    (idcard_id)
#  index_guests_on_village_id   (village_id)
#

# frozen_string_literal: true
class Guest < ApplicationRecord
  belongs_to :village
  belongs_to :building

  has_many :interviews
  belongs_to :idcard
end
